﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Input;

namespace Krist_em_up.Components
{
    [Serializable]
    public class ControlsConfig
    {
        public Keys KeyLeft
        {
            get { return _keyLeft; }
            set { _keyLeft = value; }
        }
        protected Keys _keyLeft;

        public Keys KeyRight
        {
            get { return _keyRight; }
            set { _keyRight = value; }
        }
        protected Keys _keyRight;

        public Keys KeyJump
        {
            get { return _keyJump; }
            set { _keyJump = value; }
        }
        protected Keys _keyJump;

        public Keys KeyShoot
        {
            get { return _keyShoot; }
            set { _keyShoot = value; }
        }
        protected Keys _keyShoot;

        public Keys KeyChange
        {
            get { return _keyChange; }
            set { _keyChange = value; }
        }
        protected Keys _keyChange;

        public static ControlsConfig DefaultPlayerOne()
        {
            ControlsConfig ctrls = new ControlsConfig();
            ctrls.KeyLeft = Keys.Left;
            ctrls.KeyRight = Keys.Right;
            ctrls.KeyJump = Keys.Up;
            ctrls.KeyShoot = Keys.Enter;
            ctrls.KeyChange = Keys.RightControl;
            return ctrls;
        }
        public static ControlsConfig DefaultPlayerTwo()
        {
            ControlsConfig ctrls = new ControlsConfig();
            ctrls.KeyLeft = Keys.Q;
            ctrls.KeyRight = Keys.D;
            ctrls.KeyJump = Keys.Z;
            ctrls.KeyShoot = Keys.Space;
            ctrls.KeyChange = Keys.R;
            return ctrls;
        }
    }
}
